package org.jdbcparser.rules;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;


@XmlType(name = "table")
public class RulesTable {

	private String schema;
	private String name;
	private List<RulesColumn> columns = new ArrayList<RulesColumn>();

	@XmlAttribute(name = "schema")
	public String getSchema() {
		return schema;
	}

	public void setSchema(String schema) {
		this.schema = schema;
	}

	@XmlAttribute(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlElement(name = "column")
	public List<RulesColumn> getColumns() {
		return columns;
	}

	public void setColumns(List<RulesColumn> columns) {
		this.columns = columns;
	}

}
